# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class MovieItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    name = scrapy.Field()
    url  = scrapy.Field()
    director = scrapy.Field()
    writer = scrapy.Field(serializer=lambda x: '|'.join(x))
    actor = scrapy.Field(serializer=lambda x: '|'.join(x))



class BlogItem(scrapy.Item):
    date = scrapy.Field()
    title = scrapy.Field()
    url = scrapy.Field()
    content = scrapy.Field()


class SchoolClassItem(scrapy.Item):
    name = scrapy.Field()
    url = scrapy.Field()